home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / telecomm / sticpsrc.lzh / SOURCE.ARC / ENET.H < prev    next >
C/C++ Source or Header  |  1988-07-11  |  638b  |  26 lines

  1. /* Generic Ethernet constants and templates */
  2.  
  3. #define    EADDR_LEN    6
  4. /* Format of an Ethernet header */
  5. struct ether {
  6.     char dest[EADDR_LEN];
  7.     char source[EADDR_LEN];
  8.     int16 type;
  9. };
  10. #define    ETHERLEN    14
  11.  
  12. /* Ethernet broadcast address */
  13. extern char ether_bdcst[];
  14.  
  15. /* Ethernet type fields */
  16. #define    IP_TYPE        0x800    /* Type field for IP */
  17. #define    ARP_TYPE    0x806    /* Type field for ARP */
  18.  
  19. #define    RUNT        60    /* smallest legal size packet, no fcs */
  20. #define    GIANT        1514    /* largest legal size packet, no fcs */
  21.  
  22. #define    MAXTRIES    16    /* Maximum number of transmission attempts */
  23.  
  24. struct mbuf *htonether();
  25. void eproc();
  26.